home *** CD-ROM | disk | FTP | other *** search
- #############################################################
- # Default values, often overridden in /etc/rpmrc
- #
- # This file *should not be modified*. Local customizations
- # belong in /etc/rpmrc, not here. This file will be replaced
- # whenever a new version of RPM is installed.
-
- dbpath: /var/lib/rpm
- topdir: /usr/src/OpenLinux
- tmppath: /var/tmp
- gzipbin: /bin/gzip
- bzip2bin: /bin/bzip2
- defaultdocdir: /usr/doc
- fixperms: a+rX,g-w,o-w
- rpmfilename: %{ARCH}/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm
- instchangelog: 5
-
- #############################################################
-
- # Please send new entries to rpm-list@redhat.com
-
- #############################################################
- # Values for RPM_OPT_FLAGS for various platforms
-
- optflags: i386 -O2 -m486 -fno-strength-reduce
- optflags: alpha -O2
- optflags: sparc -O2
- optflags: m68k -O2 -fomit-frame-pointer
- optflags: ppc -O2 -fsigned-char
- optflags: parisc -O2 -mpa-risc-1-0
- optflags: hppa1.0 -O2 -mpa-risc-1-0
- optflags: hppa1.1 -O2 -mpa-risc-1-0
- optflags: hppa1.2 -O2 -mpa-risc-1-0
- optflags: hppa2.0 -O2 -mpa-risc-1-0
- optflags: mipseb -O2
- optflags: mipsel -O2
- optflags: arm3 -O2
- optflags: arm4 -O2
-
- #############################################################
- # Canonical arch names and numbers
-
- arch_canon: i986: i986 1
- arch_canon: i886: i886 1
- arch_canon: i786: i786 1
- arch_canon: i686: i686 1
- arch_canon: i586: i586 1
- arch_canon: i486: i486 1
- arch_canon: i386: i386 1
- arch_canon: alpha: alpha 2
- arch_canon: sparc: sparc 3
- arch_canon: sun4: sparc 3
- arch_canon: sun4m: sparc 3
- arch_canon: sun4c: sparc 3
- arch_canon: sun4d: sparc 3
- # This is really a place holder for MIPS.
- arch_canon: mipseb: mipseb 4
- arch_canon: ppc: ppc 5
- arch_canon: m68k: m68k 6
- arch_canon: IP: sgi 7
- arch_canon: rs6000: rs6000 8
-
- arch_canon: sun4u: usparc 10
- arch_canon: mipsel: mipsel 11
-
- arch_canon: arm: arm 12
- arch_canon: arm6: arm3 12
- arch_canon: arm610: arm3 12
- arch_canon: arm7: arm3 12
- arch_canon: arm710: arm3 12
- arch_canon: arm8: arm4 12
- arch_canon: arm810: arm4 12
- arch_canon: sa110: arm4 12
-
- #############################################################
- # Canonical OS names and numbers
-
- os_canon: Linux: Linux 1
- os_canon: IRIX: Irix 2
- # This is wrong
- os_canon: SunOS5: solaris 3
- os_canon: SunOS4: SunOS 4
-
- os_canon: AmigaOS: AmigaOS 5
- os_canon: AIX: AIX 5
- os_canon: HP-UX: hpux10 6
- os_canon: OSF1: osf1 7
- os_canon: FreeBSD: FreeBSD 8
- os_canon: SCO_SV: SCO_SV3.2v5.0.2 9
- os_canon: IRIX64: Irix64 10
- os_canon: NEXTSTEP: NextStep 11
- os_canon: BSD/OS: BSD_OS 12
- os_canon: machten: machten 13
- os_canon: CYGWIN32_NT: cygwin32 14
- os_canon: CYGWIN32_95: cygwin32 15
- os_canon: UNIX_SV: MP_RAS: 16
-
- #############################################################
- # For a given uname().machine, the default build arch
-
- buildarchtranslate: osfmach3_i986: i386
- buildarchtranslate: osfmach3_i886: i386
- buildarchtranslate: osfmach3_i786: i386
- buildarchtranslate: osfmach3_i686: i386
- buildarchtranslate: osfmach3_i586: i386
- buildarchtranslate: osfmach3_i486: i386
- buildarchtranslate: osfmach3_i386: i386
-
- buildarchtranslate: i986: i386
- buildarchtranslate: i886: i386
- buildarchtranslate: i786: i386
- buildarchtranslate: i686: i386
- buildarchtranslate: i586: i386
- buildarchtranslate: i486: i386
- buildarchtranslate: i386: i386
-
- buildarchtranslate: osfmach3_ppc: ppc
- buildarchtranslate: powerpc: ppc
- buildarchtranslate: powerppc: ppc
-
- #############################################################
- # Architecture compatibility
-
- arch_compat: alpha: axp noarch
-
- arch_compat: i986: i886
- arch_compat: i886: i786
- arch_compat: i786: i686
- arch_compat: i686: i586
- arch_compat: i586: i486
- arch_compat: i486: i386
- arch_compat: i386: noarch
-
- arch_compat: osfmach3_i986: i986 osfmach3_i886
- arch_compat: osfmach3_i886: i886 osfmach3_i786
- arch_compat: osfmach3_i786: i786 osfmach3_i686
- arch_compat: osfmach3_i686: i686 osfmach3_i586
- arch_compat: osfmach3_i586: i586 osfmach3_i486
- arch_compat: osfmach3_i486: i486 osfmach3_i386
- arch_compat: osfmach3_i386: i486
-
- arch_compat: osfmach3_ppc: ppc
- arch_compat: powerpc: ppc
- arch_compat: powerppc: ppc
-
- arch_compat: usparc: sparc
- arch_compat: sparc: noarch
-
- arch_compat: ppc: rs6000
- arch_compat: rs6000: noarch
- arch_compat: mipseb: noarch
- arch_compat: mipsel: noarch
-
- arch_compat: hppa2.0: hppa1.2
- arch_compat: hppa1.2: hppa1.1
- arch_compat: hppa1.1: hppa1.0
- arch_compat: hppa1.0: parisc
- arch_compat: parisc: noarch
-
- arch_compat: arm4: arm3
- arch_compat: arm3: noarch
-
- os_compat: IRIX64: IRIX
- os_compat: solaris2.6: solaris2.3 solaris2.4 solaris2.5
- os_compat: solaris2.5: solaris2.3 solaris2.4
- os_compat: solaris2.4: solaris2.3
-
- os_compat: hpux11.00: hpux10.30
- os_compat: hpux10.30: hpux10.20
- os_compat: hpux10.20: hpux10.10
- os_compat: hpux10.10: hpux10.01
- os_compat: hpux10.01: hpux10.00
- os_compat: hpux10.00: hpux9.07
- os_compat: hpux9.07: hpux9.05
- os_compat: hpux9.05: hpux9.04
-
- os_compat: osf4.0: osf3.2
-
- os_compat: ncr-sysv4.3: ncr-sysv4.2
-
- buildarch_compat: i986: i886
- buildarch_compat: i886: i786
- buildarch_compat: i786: i686
- buildarch_compat: i686: i586
- buildarch_compat: i586: i486
- buildarch_compat: i486: i386
- buildarch_compat: i386: noarch
-
- buildarch_compat: sparc: noarch
- buildarch_compat: alpha: noarch
- buildarch_compat: m68k: noarch
- buildarch_compat: ppc: noarch
- buildarch_compat: mipsel: noarch
- buildarch_compat: mipseb: noarch
- buildarch_compat: arm4: noarch
- buildarch_compat: arm3: noarch
- buildarch_compat: parisc: noarch
-
- #############################################################
- # $Id: lib-rpmrc.epilogue,v 1.5 1999/01/18 10:44:08 ray Exp ray $
-
- #############################################################
- # Default macros for Caldera OpenLinux packages...
- # (definitely require a modified rpm-binary!)
-
- # simple ones
- macro: fixSymlinks /usr/lib/rpm-2.5.5/fixsymlinks.pl
- macro: fixUP /usr/lib/rpm-2.5.5/fixup.pl
- macro: mkCopyright /usr/lib/rpm-2.5.5/mkcopyright.pl
- macro: mkLists /usr/lib/rpm-2.5.5/mklists.pl
- macro: ckLibC5 /usr/lib/rpm-2.5.5/cklibc5.pl
-
- # a little more complex ...
- ## macros intended for (exclusive) use by other macros...
- macro: _DESTDIR \
- DESTDIR=$RPM_BUILD_ROOT;export DESTDIR
-
- macro: _BaseEnv \
- %{_DESTDIR}; GZIP="-v9nf";export GZIP
-
- macro: _MANPATHS \
- MANPATHS=`find $DESTDIR -type d -name "man[1-9n]" -print`
-
- macro: _CheckAndRemove \
- { perl -e '$_=$ENV{DESTDIR}."/"; exit (!m:/tmp/\w\S+/: || m:/\.\./:)' && \n\
- rm -rf $DESTDIR; } || { echo "Invalid BuildRoot: '$DESTDIR'!" 1>&2; false; }
-
- macro: _UID \
- { [ -n "$UID" ] || { UID=`id -u`; export UID; }; }
-
- ## and now for the goodies! :*)
- ### predicates (preferably without comments...)
- macro: NoBuildCheck \
- { [ "$COL_BUILDCHECK" != "true" ]&& echo "*** %%BuildCheck disabled" 1>&2; }
-
- macro: IsNotRoot \
- { %{_UID}; [ "$UID" -gt 0 ]; }
-
- macro: IsRoot \
- { %{_UID}; [ "$UID" -eq 0 ]; }
-
- ### installation set- and cleanup
- macro: DESTDIR # %%{DESTDIR}\n\
- %{_BaseEnv}
-
- macro: mkDESTDIR # %%{mkDESTDIR}\n\
- %{_BaseEnv}\n\
- #%%{ckLibC5} . || true\n\
- %{_CheckAndRemove}\n\
- mkdir -p $DESTDIR\n
-
- macro: rmDESTDIR # %%{rmDESTDIR}\n\
- %{_BaseEnv};%{IsNotRoot}||%{_CheckAndRemove}\n
-
- ### man- and info-pages
- macro: MANPATHS # %%{MANPATHS}\n\
- %{_MANPATHS}
-
- macro: fixManPages # %%{fixManPages}\n\
- [ -n "$MANPATHS" ] || %{_MANPATHS}\n\
- if [ -n "$MANPATHS" ]; then \n\
- chown -Rvc root.root $MANPATHS \n\
- %{fixSymlinks} --man-gz $DESTDIR $MANPATHS \n\
- find $MANPATHS -type f -not -name '*.gz' -print0 | \n\
- xargs -0r gzip \n\
- fi \n
-
- macro: fixInfoPages # %%{fixInfoPages}\n\
- if [ -d "$DESTDIR/usr/info" ]; then \n\
- find $DESTDIR/usr/info -type f -not -name '*.gz' -print0 | \n\
- xargs -0r gzip \n\
- fi \n\
- rm -f $DESTDIR/usr/info/dir.gz \n
-
-